package com.zwh.service;

import com.zwh.entity.Monkey;
import com.zwh.entity.Monkey1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class InjectionService {

    @Autowired
    private Monkey monkey;
//    提示找不到bean
//    @Autowired
//    private Monkey1 monkey1;

    public void print() {
        System.out.println("==>" + monkey);
    }
}
